package com.hzhr.iot.device.sdk.model.alarmData;

import com.hzhr.iot.core.annotation.CygModel;
import com.hzhr.iot.core.annotation.CygProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "AlarmDataModel", description = "报警数据模型")
public class AlarmDataModel {
    @ApiModelProperty(value = "说明 : 编号", required = true)
    @CygProperty(show = "", entityProp = "id")
    private Integer id;

    @ApiModelProperty(value = "说明 : 采集设备编号(show_info=true时展示; 关联: device_service.collectDevice.id)")
    @CygProperty(show = "_show_info", entityProp = "collectDeviceId")
    private Integer collectDeviceId;
    @ApiModelProperty(value = "说明 : 物联网设备编号(show_info=true时展示; 关联: device_service.iotDevice.id)", required = true)
    @CygProperty(show = "_show_info", entityProp = "iotDeviceId")
    private Integer iotDeviceId;
    @ApiModelProperty(value = "说明 : 燃气用户编号(show_info=true时展示; 关联: toll_service.gasUser.id)")
    @CygProperty(show = "_show_info", entityProp = "gasUserId")
    private Integer gasUserId;
    @ApiModelProperty(value = "说明 : 当前时间(show_info=true时展示; 毫秒级时间戳)", required = true)
    @CygProperty(show = "_show_info", entityProp = "currentTm")
    private Long currentTm;
    @ApiModelProperty(value = "说明 : 报警类型(show_info=true时展示; 关联: device_service.options.code, typeCode = 'ALARM_TYPE')", required = true)
    @CygProperty(show = "_show_info", entityProp = "alarmType")
    private String alarmType;
    @ApiModelProperty(value = "说明 : 报警类型描述(show_info=true时展示)", required = true)
    @CygProperty(show = "_show_info", entityProp = "alarmTypeExt_des")
    private String alarmTypeDes;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCollectDeviceId() {
        return collectDeviceId;
    }

    public void setCollectDeviceId(Integer collectDeviceId) {
        this.collectDeviceId = collectDeviceId;
    }

    public Integer getIotDeviceId() {
        return iotDeviceId;
    }

    public void setIotDeviceId(Integer iotDeviceId) {
        this.iotDeviceId = iotDeviceId;
    }

    public Long getCurrentTm() {
        return currentTm;
    }

    public void setCurrentTm(Long currentTm) {
        this.currentTm = currentTm;
    }

    public String getAlarmType() {
        return alarmType;
    }

    public void setAlarmType(String alarmType) {
        this.alarmType = alarmType;
    }

    public String getAlarmTypeDes() {
        return alarmTypeDes;
    }

    public void setAlarmTypeDes(String alarmTypeDes) {
        this.alarmTypeDes = alarmTypeDes;
    }

    public Integer getGasUserId() {
        return gasUserId;
    }

    public void setGasUserId(Integer gasUserId) {
        this.gasUserId = gasUserId;
    }
}

